package com.itheima.d10;

public class Test02 extends People{
    public int num;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Test02(String name, int num) {
        super(name);
        this.num = num;
    }

    public Test02(int num) {
        this.num = num;
    }
    public void printinfo(){
        System.out.println(name + num);
    }
}
